<?php
Class Persona extends AppModel
{
	var $name = 'Persona';
			
	var $hasMany = array
	(
		'Clientepersona' => array
			(
				'className' => 'Clientepersona',
				'conditions' => '',
				'order'    => '',
				'limit'    => '',
				'foreignKey' => 'personas_id',
				'dependent' => false,
				'exclusive' => false,
				'finderQuery' => '',
				'fields'     => '',
				'offset'     => '',
				'counterQuery' => ''
			)
	);
		
	//Validaciones de los campos	
	var $validate = array
	(
/*		'nombre' => '/^[a-zA-Z\W\.\s]{4,20}$/i',
		'apellido' => '/^[a-zA-Z\W\.\s]{4,20}$/i',
		'dni' => '/^[0-9]{0,8}$/i'
*/		
		//'nombre' => '/^[a-záéíóúA-Z\.\s]{4,20}$/i',
		//'apellido' => '/^[a-záéíóúA-Z\W\.\s]{4,20}$/i',
	);
}
?>